package com.headwind.logistics.system.controller;

import com.headwind.logistics.common.util.LayuiUtil;
import com.headwind.logistics.system.dto.IntegralDto;
import com.headwind.logistics.system.service.intl.IntegralService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @Author你爸爸 Date2020/7/24 16:48
 * Version 1.0
 * DESCRIPTION
 */
@Controller
public class IntegralController {
    @Autowired
    private IntegralService integralService;

    //查询
    @RequestMapping("/admin/system/selectIntegral")
    @ResponseBody
    public LayuiUtil selectIntegral(Integer page,Integer limit){
        List<IntegralDto> list=integralService.selectIntegral(page,limit);
        return LayuiUtil.data(integralService.selectIntegral(null,null).size(),list);
    }
}
